#version 410 core

// Declare all the semantics
#define ATTR_POSITION	0
#define ATTR_NORMAL		1
#define ATTR_COLOR		2

#define VERT_POSITION	0
#define VERT_NORMAL		1
#define VERT_COLOR		2
#define VERT_INSTANCE	3

#define FRAG_COLOR		0

uniform mat4 ModelViewProj;

layout(location = ATTR_POSITION) in vec3 Position;
layout(location = ATTR_COLOR) in vec3 Color;

layout(location = VERT_COLOR) out vec3 vColor;

void main()
{
	gl_Position = ModelViewProj * vec4(Position, 1.0f);
	vColor = Color;
}
